﻿namespace SilenthinkContract.Domain
{
    public class UserAccount : Versionable<int>
    {
        /// <summary>
        /// 
        /// </summary>
        public decimal GiftCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public decimal FreezeCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public decimal RechargeCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public decimal TransactionCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int BidCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int FreeBidCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int TempBidCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int IntegralCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int TempIntegralCurrency {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int Certification {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public string Extra {get; set;}
          
        /// <summary>
        /// 
        /// </summary>
        public int Status {get; set;}

        public decimal AvailableCash { get { return (TransactionCurrency + RechargeCurrency+GiftCurrency) - FreezeCurrency; } }
      }
}